using System;
using System.Data;
using System.Data.SqlClient;
using LibreriaCommon;
using LibreriaData;
using Microsoft.Practices.EnterpriseLibrary.Data;
using SistemaControlTraficoLibDS;

namespace SistemaControlTraficoLibData
{
    public class daChofer : daChoferBase, IDisposable
    {
        public daChofer(SecurityInfo securityInfo) : base(securityInfo)
        {
        }

        public DataSet FindByFiltros(string choferNombre, string choferApellido, string choferEmail, string choferTelefono, string choferCelular, object estado)
        {
            try
            {
                DataSet ds = new DataSet();
                daCommon.GenericFind(securityInfo, "ChoferFindByFiltros", ds, new string[] { "Chofer" }, choferNombre, choferApellido, choferEmail, choferTelefono, choferCelular, estado);
                return ds;
            }
            catch (Exception ex)
            {
                throw new daException(ex);
            }
        }

    }
}

